package com.wangjiyuan.giftshuo.bean.listtopbean.commentbean;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;
import java.util.List;

/**
 * Created by ZangSyeriong on 2016/11/22.
 */

public class CommentBean {

    /**
     * code : 200
     * data : {"comments":[{"content":"好消息","created_at":1478952894,"id":519407,"images":[{"h":1280,"original":"http://img02.liwushuo.com/comment/20161112/mi01wuue5_i.png?imageView2/2/w/719/q/85/format/webp","thumbnail":"http://img02.liwushuo.com/comment/20161112/mi01wuue5_i.png?imageView2/2/w/300/q/85/format/webp","url":"comment/20161112/mi01wuue5_i.png","w":719}],"item_id":1069729,"reply_to_id":null,"show":true,"status":1,"user":{"avatar_url":"http://img02.liwushuo.com/avatar/20150714/3ze7j9kjx_i.png-w180","can_mobile_login":true,"guest_uuid":null,"id":2754069,"nickname":"18758587296","role":0}},{"content":"圈太小，圈不了几条钥匙","created_at":1478423600,"id":518758,"images":[],"item_id":1069729,"reply_to_id":null,"show":true,"status":1,"user":{"avatar_url":"http://img03.liwushuo.com/avatar/150903/9b582d971_a.png-w180","can_mobile_login":false,"guest_uuid":null,"id":5513487,"nickname":"没心没肺活着不累","role":0}},{"content":"会不会很容易脏呀","created_at":1478059416,"id":518081,"images":[],"item_id":1069729,"reply_to_id":null,"show":true,"status":1,"user":{"avatar_url":"http://img03.liwushuo.com/avatar/20161021/79zmkk5xc_i.png-w180","can_mobile_login":false,"guest_uuid":null,"id":1275567,"nickname":"橘","role":0}},{"content":"喜欢！","created_at":1477667917,"id":517383,"images":[],"item_id":1069729,"reply_to_id":null,"show":true,"status":1,"user":{"avatar_url":"http://img03.liwushuo.com/avatar/20150413/45rjxayz3_i.png-w180","can_mobile_login":false,"guest_uuid":null,"id":1957098,"nickname":"贞子帕帕","role":0}},{"content":"一眼就喜欢啦","created_at":1477623599,"id":517280,"images":[],"item_id":1069729,"reply_to_id":null,"show":true,"status":1,"user":{"avatar_url":"http://img02.liwushuo.com/avatar/20160907/tx55i7kbn_i.png-w180","can_mobile_login":true,"guest_uuid":null,"id":7332703,"nickname":"墨夏至","role":0}},{"content":"沙发！","created_at":1474984808,"id":511028,"images":[],"item_id":1069729,"reply_to_id":null,"show":true,"status":1,"user":{"avatar_url":"http://img02.liwushuo.com/avatar/150819/86600162b_a.png-w180","can_mobile_login":false,"guest_uuid":null,"id":5308891,"nickname":"bang","role":0}}],"paging":{"next_url":"http://api.liwushuo.com/v2/items/1069729/comments?limit=20&offset=20"}}
     * message : OK
     */

    @SerializedName("code")
    private int code;
    @SerializedName("data")
    private DataBean data;
    @SerializedName("message")
    private String message;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public static class DataBean {
        /**
         * comments : [{"content":"好消息","created_at":1478952894,"id":519407,"images":[{"h":1280,"original":"http://img02.liwushuo.com/comment/20161112/mi01wuue5_i.png?imageView2/2/w/719/q/85/format/webp","thumbnail":"http://img02.liwushuo.com/comment/20161112/mi01wuue5_i.png?imageView2/2/w/300/q/85/format/webp","url":"comment/20161112/mi01wuue5_i.png","w":719}],"item_id":1069729,"reply_to_id":null,"show":true,"status":1,"user":{"avatar_url":"http://img02.liwushuo.com/avatar/20150714/3ze7j9kjx_i.png-w180","can_mobile_login":true,"guest_uuid":null,"id":2754069,"nickname":"18758587296","role":0}},{"content":"圈太小，圈不了几条钥匙","created_at":1478423600,"id":518758,"images":[],"item_id":1069729,"reply_to_id":null,"show":true,"status":1,"user":{"avatar_url":"http://img03.liwushuo.com/avatar/150903/9b582d971_a.png-w180","can_mobile_login":false,"guest_uuid":null,"id":5513487,"nickname":"没心没肺活着不累","role":0}},{"content":"会不会很容易脏呀","created_at":1478059416,"id":518081,"images":[],"item_id":1069729,"reply_to_id":null,"show":true,"status":1,"user":{"avatar_url":"http://img03.liwushuo.com/avatar/20161021/79zmkk5xc_i.png-w180","can_mobile_login":false,"guest_uuid":null,"id":1275567,"nickname":"橘","role":0}},{"content":"喜欢！","created_at":1477667917,"id":517383,"images":[],"item_id":1069729,"reply_to_id":null,"show":true,"status":1,"user":{"avatar_url":"http://img03.liwushuo.com/avatar/20150413/45rjxayz3_i.png-w180","can_mobile_login":false,"guest_uuid":null,"id":1957098,"nickname":"贞子帕帕","role":0}},{"content":"一眼就喜欢啦","created_at":1477623599,"id":517280,"images":[],"item_id":1069729,"reply_to_id":null,"show":true,"status":1,"user":{"avatar_url":"http://img02.liwushuo.com/avatar/20160907/tx55i7kbn_i.png-w180","can_mobile_login":true,"guest_uuid":null,"id":7332703,"nickname":"墨夏至","role":0}},{"content":"沙发！","created_at":1474984808,"id":511028,"images":[],"item_id":1069729,"reply_to_id":null,"show":true,"status":1,"user":{"avatar_url":"http://img02.liwushuo.com/avatar/150819/86600162b_a.png-w180","can_mobile_login":false,"guest_uuid":null,"id":5308891,"nickname":"bang","role":0}}]
         * paging : {"next_url":"http://api.liwushuo.com/v2/items/1069729/comments?limit=20&offset=20"}
         */

        @SerializedName("paging")
        private PagingBean paging;
        @SerializedName("comments")
        private List<CommentsBean> comments;

        public PagingBean getPaging() {
            return paging;
        }

        public void setPaging(PagingBean paging) {
            this.paging = paging;
        }

        public List<CommentsBean> getComments() {
            return comments;
        }

        public void setComments(List<CommentsBean> comments) {
            this.comments = comments;
        }

        public static class PagingBean {
            /**
             * next_url : http://api.liwushuo.com/v2/items/1069729/comments?limit=20&offset=20
             */

            @SerializedName("next_url")
            private String nextUrl;

            public String getNextUrl() {
                return nextUrl;
            }

            public void setNextUrl(String nextUrl) {
                this.nextUrl = nextUrl;
            }
        }

        public static class CommentsBean implements Serializable {
            /**
             * content : 好消息
             * created_at : 1478952894
             * id : 519407
             * images : [{"h":1280,"original":"http://img02.liwushuo.com/comment/20161112/mi01wuue5_i.png?imageView2/2/w/719/q/85/format/webp","thumbnail":"http://img02.liwushuo.com/comment/20161112/mi01wuue5_i.png?imageView2/2/w/300/q/85/format/webp","url":"comment/20161112/mi01wuue5_i.png","w":719}]
             * item_id : 1069729
             * reply_to_id : null
             * show : true
             * status : 1
             * user : {"avatar_url":"http://img02.liwushuo.com/avatar/20150714/3ze7j9kjx_i.png-w180","can_mobile_login":true,"guest_uuid":null,"id":2754069,"nickname":"18758587296","role":0}
             */

            @SerializedName("content")
            private String content;
            @SerializedName("created_at")
            private int createdAt;
            @SerializedName("id")
            private int id;
            @SerializedName("item_id")
            private int itemId;
            @SerializedName("reply_to_id")
            private Object replyToId;
            @SerializedName("show")
            private boolean show;
            @SerializedName("status")
            private int status;
            @SerializedName("user")
            private UserBean user;
            @SerializedName("images")
            private List<ImagesBean> images;

            public String getContent() {
                return content;
            }

            public void setContent(String content) {
                this.content = content;
            }

            public int getCreatedAt() {
                return createdAt;
            }

            public void setCreatedAt(int createdAt) {
                this.createdAt = createdAt;
            }

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public int getItemId() {
                return itemId;
            }

            public void setItemId(int itemId) {
                this.itemId = itemId;
            }

            public Object getReplyToId() {
                return replyToId;
            }

            public void setReplyToId(Object replyToId) {
                this.replyToId = replyToId;
            }

            public boolean isShow() {
                return show;
            }

            public void setShow(boolean show) {
                this.show = show;
            }

            public int getStatus() {
                return status;
            }

            public void setStatus(int status) {
                this.status = status;
            }

            public UserBean getUser() {
                return user;
            }

            public void setUser(UserBean user) {
                this.user = user;
            }

            public List<ImagesBean> getImages() {
                return images;
            }

            public void setImages(List<ImagesBean> images) {
                this.images = images;
            }

            public static class UserBean implements Serializable{
                /**
                 * avatar_url : http://img02.liwushuo.com/avatar/20150714/3ze7j9kjx_i.png-w180
                 * can_mobile_login : true
                 * guest_uuid : null
                 * id : 2754069
                 * nickname : 18758587296
                 * role : 0
                 */

                @SerializedName("avatar_url")
                private String avatarUrl;
                @SerializedName("can_mobile_login")
                private boolean canMobileLogin;
                @SerializedName("guest_uuid")
                private Object guestUuid;
                @SerializedName("id")
                private int id;
                @SerializedName("nickname")
                private String nickname;
                @SerializedName("role")
                private int role;

                public String getAvatarUrl() {
                    return avatarUrl;
                }

                public void setAvatarUrl(String avatarUrl) {
                    this.avatarUrl = avatarUrl;
                }

                public boolean isCanMobileLogin() {
                    return canMobileLogin;
                }

                public void setCanMobileLogin(boolean canMobileLogin) {
                    this.canMobileLogin = canMobileLogin;
                }

                public Object getGuestUuid() {
                    return guestUuid;
                }

                public void setGuestUuid(Object guestUuid) {
                    this.guestUuid = guestUuid;
                }

                public int getId() {
                    return id;
                }

                public void setId(int id) {
                    this.id = id;
                }

                public String getNickname() {
                    return nickname;
                }

                public void setNickname(String nickname) {
                    this.nickname = nickname;
                }

                public int getRole() {
                    return role;
                }

                public void setRole(int role) {
                    this.role = role;
                }
            }

            public static class ImagesBean implements Serializable{
                /**
                 * h : 1280
                 * original : http://img02.liwushuo.com/comment/20161112/mi01wuue5_i.png?imageView2/2/w/719/q/85/format/webp
                 * thumbnail : http://img02.liwushuo.com/comment/20161112/mi01wuue5_i.png?imageView2/2/w/300/q/85/format/webp
                 * url : comment/20161112/mi01wuue5_i.png
                 * w : 719
                 */

                @SerializedName("h")
                private int h;
                @SerializedName("original")
                private String original;
                @SerializedName("thumbnail")
                private String thumbnail;
                @SerializedName("url")
                private String url;
                @SerializedName("w")
                private int w;

                public int getH() {
                    return h;
                }

                public void setH(int h) {
                    this.h = h;
                }

                public String getOriginal() {
                    return original;
                }

                public void setOriginal(String original) {
                    this.original = original;
                }

                public String getThumbnail() {
                    return thumbnail;
                }

                public void setThumbnail(String thumbnail) {
                    this.thumbnail = thumbnail;
                }

                public String getUrl() {
                    return url;
                }

                public void setUrl(String url) {
                    this.url = url;
                }

                public int getW() {
                    return w;
                }

                public void setW(int w) {
                    this.w = w;
                }
            }
        }
    }
}
